package com.example.demo1;

import java.util.ArrayList;
import java.util.List;

import com.example.demo1.HorPickView.onHorSelectListener;

import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.nfc.NfcAdapter;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.WindowManager;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListener;
import android.view.animation.LinearInterpolator;
import android.widget.Button;
import android.widget.ImageView;

public class MainActivity extends Activity {

	private Button main1_btn;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
		setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
		setContentView(R.layout.activity_main);
		inithpv();
	}

	private void inithpv() {
		main1_btn = (Button)findViewById(R.id.main1_btn);
		main1_btn.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				intentB();
			}
		});
	}

	protected void intentB() {
		Intent intent = new Intent(this,Main2Activity.class);
		startActivityForResult(intent, 11);
	}

	@Override
	protected void onResume() {
		super.onResume();
		Log.e("fzq", "-----------onResume:");
	
	}
	
	@Override
	protected void onActivityResult(int requestCode, int resultCode, Intent data) {
		super.onActivityResult(requestCode, resultCode, data);
		Log.e("fzq", "-----------onActivityResult:"+data + "/////"+"requestCode :  " + requestCode + "   \\\resultCode  :  " +resultCode);
	}
	
	

}
